home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / applications / databases / mdb3_0b_bin.lha / mdb3_0 / MDB-Install < prev    next >
Encoding:
Text File  |  1994-11-09  |  5.8 KB  |  201 lines

  1. ;*********************************************************************************************
  2. ; Install-Script for the MovieDataBase V3.0b
  3. ; (c) 21.07.1994 by Andre Bernhardt
  4. ;*********************************************************************************************
  5.  
  6. (if (< (/ (getversion) 65536) 37)
  7.   (abort "This program requires Kickstart 2.04 or greater to run !")
  8. )
  9.  
  10. (message "WELCOME to the MovieDataBase V3.0b.\n\n"
  11. "This Installer-script expects that you have about 37 MByte available on your harddisc.\n"
  12. "If this is not the case read the Manual!\n\n"
  13. "Please read the Documentation before you install the MovieDataBase anyway!")
  14.  
  15. (message "IMPORTANT!!!\n\nYou do have to install the MagicUserInterface (MUI) "
  16. "first to work with the GUI of the MovieDataBase. (Refer to the docs about that)\n\n"
  17. "If you want this script to completely install the database, ARexx has be installed on your System.\n"
  18. "You should install AmigaGuide if you want to use the Online Help System.\n\n"
  19. "One more thing...\n"
  20. "If you have already installed an older Version than 3.0 of the MovieDatabase, you should delete it first.")
  21.  
  22.  
  23. (@default-dest "SYS:")
  24.  
  25. (set destdir
  26.   (askdir
  27.     (prompt "Select where to install the MovieDataBase\nA directory 'MovieDataBase' will be created automatically.")
  28.     (help @askdir-help)
  29.     (default @default-dest)
  30.     (newpath)
  31.   )
  32. )
  33.  
  34. (set @default-dest      (tackon destdir "MovieDataBase"))
  35. (set arexx              (tackon @default-dest "rexx"))
  36.  
  37. (transcript "On making \"MovieDataBase\"...")
  38.  
  39. ;******************************************************************************
  40. ;****   First create the main directory and copy files and scripts and docs
  41. ;******************************************************************************
  42.  
  43. (makedir @default-dest
  44.         (prompt "\ncreating directory 'MovieDataBase' ...")
  45.         (help @makedir-help)
  46.         (infos)
  47.         (confirm)
  48. )
  49. (makedir arexx
  50.         (prompt "\ncreating directory 'MovieDataBase/rexx' ...")
  51.         (help @makedir-help)
  52.         (infos)
  53.         (confirm)
  54. )
  55.  
  56. (copyfiles
  57.         (prompt "Copying all Binaries & Documentation ...")
  58.         (help @copyfiles-help)
  59.         (source "")
  60.         (dest @default-dest)
  61.         (pattern "MovieMUI#?")
  62.         (infos)
  63.         (files)
  64.         (confirm)
  65. )
  66. (copyfiles
  67.         (prompt "Copying all ARexx-Scripts ...")
  68.         (help @copyfiles-help)
  69.         (source "rexx/")
  70.         (dest arexx)
  71.         (all)
  72.         (infos)
  73.         (confirm)
  74. )
  75.  
  76. ;******************************************************************************
  77. ;****   Now create the lists/ and dbs/ directories
  78. ;******************************************************************************
  79.  
  80. (set lists
  81.   (askdir
  82.     (prompt "Select where to put the raw listfiles\nA directory 'lists' will be created automatically.")
  83.     (help @askdir-help)
  84.     (default @default-dest)
  85.     (newpath)
  86.   )
  87. )
  88.  
  89. (set listsdir (tackon lists "lists"))
  90.  
  91. (makedir listsdir
  92.         (prompt "\ncreating directory 'lists' ...")
  93.         (help @makedir-help)
  94.         (infos)
  95.         (confirm)
  96. )
  97.  
  98. ; Jetzt das DBS-Verzeichnis
  99.  
  100. (set dbs
  101.   (askdir
  102.     (prompt "Select where to install the database files\nA directory 'dbs' will be created automatically.")
  103.     (help @askdir-help)
  104.     (default @default-dest)
  105.     (newpath)
  106.   )
  107. )
  108.  
  109. (set dbsdir (tackon dbs "dbs"))
  110.  
  111. (makedir dbsdir
  112.         (prompt "\ncreating directory 'MovieDataBase/dbs' ...")
  113.         (help @makedir-help)
  114.         (infos)
  115.         (confirm)
  116. )
  117.  
  118. ;******************************************************************************
  119. ;****   Uncompress the Datafiles
  120. ;******************************************************************************
  121.  
  122. (
  123.  (if (askbool (prompt "\nThere are three Data-Archives available (approx. 8MB LhA-packed...)\n\nDo you want to unpack the 1st Data-Archive?")
  124.                    (help @askfile-help)
  125.                    (default 1)
  126.      )
  127.      (
  128.       (set data (askfile (prompt "\n" "Please show me your Datafile...")
  129.                           (help @askfile-help)
  130.                           (default "mdb3_0a_data1.lha")
  131.                 )
  132.       )
  133.  
  134.       (set unpack (cat "c:lha x " data " " listsdir "/"))
  135.       (working unpack)
  136.       (run unpack)
  137.      )
  138.  )
  139. )
  140.  
  141. (
  142.  (if (askbool (prompt "\nDo you want to unpack the 2nd Data-Archive?")
  143.                    (help @askfile-help)
  144.                    (default 1)
  145.      )
  146.      (
  147.       (set data (askfile (prompt "\n" "Please show me your Datafile...")
  148.                           (help @askfile-help)
  149.                           (default "mdb3_0a_data2.lha")
  150.                 )
  151.       )
  152.  
  153.       (set unpack (cat "c:lha x " data " " listsdir "/"))
  154.       (working unpack)
  155.       (run unpack)
  156.      )
  157.  )
  158. )
  159.  
  160. (
  161.  (if (askbool (prompt "\nDo you want to unpack the 3rd Data-Archive?")
  162.                    (help @askfile-help)
  163.                    (default 1)
  164.      )
  165.      (
  166.       (set data (askfile (prompt "\n" "Please show me your Datafile...")
  167.                           (help @askfile-help)
  168.                           (default "mdb3_0a_data3.lha")
  169.                 )
  170.       )
  171.  
  172.       (set unpack (cat "c:lha x " data " " listsdir "/"))
  173.       (working unpack)
  174.       (run unpack)
  175.      )
  176.  )
  177. )
  178.  
  179. ;******************************************************************************
  180. ;****  Now ask if the database shall be installed immediately
  181. ;******************************************************************************
  182.  
  183. (set #mdb-install-help
  184.   (cat "In order to be able to access the MovieDataBase, the listfiles "
  185.        "have to be transformed in another format. You can do this now "
  186.        "by clicking 'YES' or you'll have to do it later manually. \n"
  187.        "Please refer to the docs for more information.\n")
  188. )
  189.  
  190. (if (askbool
  191.    (prompt "\n" "Shall I process the Data now (needs about 18MB diskspace)?")
  192.       (help #mdb-install-help)
  193.       (default 1)
  194.       (choices "Yes" "No, I'll do it manually.")
  195.    )
  196.    (
  197.       (set mdb_install (cat "MDB-Install-Support " listsdir " " dbsdir))
  198.       (execute mdb_install)
  199.    )
  200. )
  201.